# -*- encoding:utf-8 -*-
"""
@作者：ven
@文件名：IdentificationActivity.py
@时间：2021-11-06  13:37
@文档说明: 识别页面
"""
from common.baseactivity import BaseActivity


class IdentificationActivity(BaseActivity):

    def __init__(self):
        super().__init__()
        self.loginLogoLocator = ('id','com.sykean.biometrics:id/image_logo')

    def loginLogo(self):
        self.ele_click(self.loginLogoLocator)
        self._screenshot('../outFiles/login.png')
        print(self.driver.current_activity)
        print(self.driver.current_package)
        print(self.driver.is_app_installed('com.sykean.biometrics'))

if __name__ == '__main__':
    IdentificationActivity().loginLogo()